package p2pserver
{
	import flash.net.GroupSpecifier;
	
	public class P2pGroupSpecifiger extends GroupSpecifier
	{
		private var _groupName:String = null;
		
		public function P2pGroupSpecifiger(name:String)
		{
			super(name);
			
			_groupName = name;			
		}
		
		public function EnableMultimediaPublish():void{
			this.serverChannelEnabled = true;
			this.multicastEnabled = true;
			this.postingEnabled = false;
			this.ipMulticastMemberUpdatesEnabled = false;			
		}
		
		public function EnablePostingMessage():void{
			this.serverChannelEnabled = true;
			this.multicastEnabled = true;
			this.postingEnabled = true;
			this.ipMulticastMemberUpdatesEnabled = true;			
		}
		
		public function get GroupName():String
		{
			return _groupName;
		}

	}
}